package nio;

import java.io.File;
import java.io.IOException;
// 路径信息
public class PathInfo {

    public static void main(String[] args) throws IOException {
		if (args.length != 1) {
			System.err.println("error");
			return;
		}
		File file= new File(args[0]);
		System.out.println("Absolute path = " + file.getAbsolutePath());
		System.out.println("Canonical path = " + file.getCanonicalPath());
		System.out.println("Name = " + file.getName());
		System.out.println("Parent = " + file.getParent());
		System.out.println("Path = " + file.getPath());
		System.out.println("Is absolute = " + file.isAbsolute());

	}

}